package edu.hqu.deepspace.pojo;

import java.util.Date;

public class Order {
    private int oid;
    private String uid;
    private int pid;
    private Date creatTime;
    private int state;

    public Order() {
    }

    public Order(int oid, String uid, int pid, Date creatTime, int state) {
        this.oid = oid;
        this.uid = uid;
        this.pid = pid;
        this.creatTime = creatTime;
        this.state = state;
    }

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "order{" +
                "oid=" + oid +
                ", uid='" + uid + '\'' +
                ", pid=" + pid +
                ", creatTime=" + creatTime +
                ", state=" + state +
                '}';
    }
}
